package e

const (
	// HTTP 状态码
	SUCCESS             = 200
	CREATED             = 201
	ACCEPTED            = 202
	DELETED             = 204
	BAD_REQUEST         = 400
	UNAUTHORIZED        = 401
	FORBIDDEN           = 403
	NOT_FOUND           = 404
	UNPROCESABLE_ENTITY = 422
	ERROR               = 500

	//请求相关的状态码 2 开头的四位数字
	PATH_PARAMS = 2001
	GET_PARAMS  = 2002
	JSON_PARAMS = 2003

	//解析相关的状态码 3 开头的四位数字
	JSON_ENCODE  = 3001
	JSON_DECODE  = 3002
	DATA_ENCRYPT = 3003
	DATA_DECRYPT = 3004

	//验证相关的状态码 4 开头的四位数字
	SIGN_VERIFY    = 4001
	TOKEN_VERIFY   = 4002
	CAPTCHA_VERIFY = 4003
	USER_OR_PASS   = 4004

	//返回相关的状态码 5 开头的四位数字
	ALREADY_EXIST = 5001
	NOT_EXIST     = 5002
	ADD_FAIL      = 5003
	UPDATE_FAIL   = 5004
	DELETE_FAIL   = 5005

	//资源相关的状态码 6 开头的四位数字
	INTERNAL    = 6000
	TOKEN_GEN   = 6001
	CAPTCHA_GEN = 6002

	// 保存图片失败
	ERROR_UPLOAD_SAVE_IMAGE_FAIL = 30001
	// 检查图片失败
	ERROR_UPLOAD_CHECK_IMAGE_FAIL = 30002
	// 校验图片错误，图片格式或大小有问题
	ERROR_UPLOAD_CHECK_IMAGE_FORMAT = 30003
)
